package com.h.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Order(1)
@Component
public class AspectDemo3 {

    @Before("execution(* com.h.aop.controller.*.*(..))")
    public void doBefore() {
        log.info("AspectDemo3 Before前置通知.......");
    }

    @After("execution(* com.h.aop.controller.*.*(..))")
    public void doAfter() {
        log.info("AspectDemo3 After后置通知.......");
    }
}
